import request from '@/utils/request'

// 查询退伍人员列表
export function listVeteran(query) {
  return request({
    url: '/report/veteran/list',
    method: 'get',
    params: query
  })
}

// 查询退伍人员详细
export function getVeteran(id) {
  return request({
    url: '/report/veteran/' + id,
    method: 'get'
  })
}

// 新增退伍人员
export function addVeteran(data) {
  return request({
    url: '/report/veteran',
    method: 'post',
    data: data
  })
}

// 修改退伍人员
export function updateVeteran(data) {
  return request({
    url: '/report/veteran',
    method: 'put',
    data: data
  })
}

// 删除退伍人员
export function delVeteran(id) {
  return request({
    url: '/report/veteran/' + id,
    method: 'delete'
  })
}
